﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Bigger.Study.ConsoleApp.Autofac.Property_Injection
{
    public class TodayWriter : IDateWriter
    {
        public IOutput Output { get; set; }
        //public TodayWriter(IOutput output)
        //{
        //    this.Output = output;
        //}
        public TodayWriter()
        {

        }

        public void WriteDate()
        {
            this.Output.Write(DateTime.Today.ToShortDateString());
        }
    }
}
